﻿<Window x:Class="YSGetLatest.OptionsWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Options" Height="139" Width="508"
		FocusManager.FocusedElement="{Binding ElementName=textBoxTfPath}"
		Loaded="Window_Loaded"
		WindowStartupLocation="CenterOwner" ShowInTaskbar="False"
		Icon="/YsGetLatest;component/App.ico">
    <Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition/>
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="Auto"/>
			<ColumnDefinition/>
		</Grid.ColumnDefinitions>

		<Label Grid.Row="0" Grid.Column="0" Target="{Binding ElementName=textBoxTfPath}">_Folder with tf.exe</Label>
		<Grid Grid.Row="0" Grid.Column="1">
			<Grid.ColumnDefinitions>
				<ColumnDefinition/>
				<ColumnDefinition Width="Auto"/>
			</Grid.ColumnDefinitions>

			<TextBox Grid.Column="0" Name="textBoxTfPath" HorizontalAlignment="Stretch"/>
			<Button Grid.Column="1" Width="20" Height="20" Name="buttonBrowse" Click="ButtonBrowse_Click" ToolTip="Browse file">
				<Image Source="/YsGetLatest;component/Images/PerspectiveButtonSearch.png"/>
			</Button>
		</Grid>

		<StackPanel Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center">
			<Button IsDefault="True" Click="ButtonOK_Click">OK</Button>
			<Button Width="Auto" Click="ButtonResetDefault_Click" >Reset Defaults</Button>
			<Button IsCancel="True">Cancel</Button>
		</StackPanel>
	</Grid>
</Window>
